# POST /visits/{id} URL: https://developers.vsee.io/api/visit-api/post/visits/%7Bid%7D operationId: updateVisit Auth: User Token — Requires a user access token from login or SSO. Update an appointment Update an existing appointment (e.g., change time or provider) Parameters: - X-ApiToken (header, string, required) — API token - X-AccountCode (header, string, required) — Account code - id (path, string, required) — Visit ID - version (query, integer, optional) — API version - use 2 for update operations - slot_start (query, integer, optional) — UNIX timestamp of new appointment start (optional) - slot_end (query, integer, optional) — UNIX timestamp of new appointment end (optional) - provider_id (query, string, optional) — New provider ID (optional). Set to 0 to remove provider. Responses: - 200 — Visit updated successfully ```json { "data": { "member_id": 567, "provider_id": 566, "account_code": "vclinic", "code": "615f2e2eabc46ad94e9b6457b11", "start": 1631628616, "end": 1631628916, "type": 2, "status": 30 } } ``` - 401 — Unauthorized ```json { "error": "Unauthorized", "message": "Invalid or missing API token" } ```